package mhl.service;

import mhl.dao.EmployeeDAO;
import mhl.domain.Employee;

/**
 * @author DCSGO
 * @version 1.0
 */
public class EmployeeService {
    private final EmployeeDAO employeeDAO = new EmployeeDAO();

    public Employee getEmpByIdAndPwd(String id, String pwd) {
        String sql = "select * from employee where id = ? and pwd = md5(?)";
        return employeeDAO.querySingle(sql, Employee.class, id, pwd);
    }
}
